package cn.nextProject.service;

import cn.nextProject.entity.RoleGroup;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleGroupService {

    /**
     * 查询角色组
     * @param roleGroup
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<RoleGroup> findByRoleGroup(RoleGroup roleGroup, int pageNum, int pageSize);

    /**
     * 新增
     * @param roleGroup
     */
    void save(RoleGroup roleGroup);

    RoleGroup findOne(Long roleGroupId);

    void update(RoleGroup roleGroup);

    void delete(Long roleGroupId);
}
